home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
INPORTB.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
281 b
|
12 lines
/* inportb.c --- p 519 */
#include <stdio.h>
#include <dos.h>
#define PORT_8259 0x21
main()
{
int int_ack_status;
/* Read 8259's status */
int_ack_status = inportb(PORT_8259);
printf("Current contents of register at port 21h: %x\n",
int_ack_status);
}